function page_nav(frm, num) {
    frm.pageIndex.value = num;
    frm.submit();
}
